﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SIMA.Generator
{
    public class Table
    {
        string name;


        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        List<Column> columns;


        public List<Column> Columns
        {
            get { return columns; }
            set { columns = value; }
        }
        List<Column> primaryKeys;


        public List<Column> PrimaryKeys
        {
            get { return primaryKeys; }
            set { primaryKeys = value; }
        }
        Dictionary<string, List<Column>> foreignKeys;


        public Dictionary<string, List<Column>> ForeignKeys
        {
            get { return foreignKeys; }
            set { foreignKeys = value; }
        }


        public Table()
        {
            columns = new List<Column>();
            primaryKeys = new List<Column>();
            foreignKeys = new Dictionary<string, List<Column>>();
        }
    }
}
